package com.ruoyi.generator.mapper;

import com.ruoyi.generator.entity.Area;
import com.ruoyi.generator.entity.ClUser;
import com.ruoyi.generator.entity.Equipment;
import com.ruoyi.generator.entity.bo.PlanAssociationBO;
import com.ruoyi.generator.po.Device;
import com.ruoyi.generator.po.DeviceFile;
import com.ruoyi.generator.vo.MaintenanceAppVO;

import java.util.List;

/**
 * 业务字段 数据层
 *
 * @author ruoyi
 */
public interface AppMapper {
    void updateMaintenanceStatus(MaintenanceAppVO maintenanceAppVO);

    List<MaintenanceAppVO> getMaintenanceList(String type);


    MaintenanceAppVO getMaintenanceById(MaintenanceAppVO maintenanceAppVO);
    List<MaintenanceAppVO> getMaintenanceListByName(MaintenanceAppVO maintenanceAppVO);
    List<Area> getAreaList();
    List<ClUser> getClUserList();

    int updateMaintenanceProblemStatus(MaintenanceAppVO maintenanceAppVO);

    /**
     * 根据保养状态获取保养信息
     *
     * @return
     */
    List<MaintenanceAppVO> getmaintenanceStatus(String status);


    /**
     * 获取保养列表信息
     *
     * @param maintenanceAppVO
     * @return
     */
    List<MaintenanceAppVO> selectMaintenanceAppList(MaintenanceAppVO maintenanceAppVO);

    List<Equipment> getEquipmentByAreaId(String areaId);

//    List<PlanAssociationBO> selectClientEquipment(PlanAssociationBO planAssociationBO);
}
